#pragma once
#include <nice2d/action.h>

class FiniteTimeAction : public Action
{
    DECLARE_OBJECT(FiniteTimeAction)
public:
    FiniteTimeAction() = delete;
    FiniteTimeAction(float duration = 3.0f);
    virtual ~FiniteTimeAction();
public:
    float getDuration()const;
private:
    std::unique_ptr<class FiniteTimeActionData> data;
};

